<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="sid" label="#" width="180" />
    <el-table-column prop="trainno" label="车次" width="180" />
    <el-table-column prop="fromnm" label="当前站点" />
    <el-table-column prop="tonm" label="下一站" />
  </el-table>
</template>

<script lang="ts" setup>
import { useScheduleStore } from '../../stores/schedule'
import { storeToRefs } from 'pinia'
const scheduleStore = useScheduleStore()
const { tableData } = storeToRefs(scheduleStore)

scheduleStore.loadall()
</script>
